package corenlp;

import edu.stanford.nlp.pipeline.Annotation;
import edu.stanford.nlp.pipeline.StanfordCoreNLP;

/**
 * Created by common on 2017/4/6.
 */
public class BasicPipelineChinese2 {

    public static void main(String[] args) {
        String props="StanfordCoreNLP-chinese.properties";
        StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
        Annotation annotation;
        //if  data from file
        //annotation = new Annotation(IOUtils.slurpFileNoExceptions(file));
        annotation = new Annotation("这家酒店很好，我很喜欢。");


        pipeline.annotate(annotation);
        pipeline.prettyPrint(annotation, System.out);




    }
}
